package com.huatai.user.feign;

import com.huatai.common.api.R;
import com.huatai.user.entity.LoginLog;
import com.huatai.user.entity.Role;
import com.huatai.user.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

import static com.huatai.common.constant.MicroServiceConstant.HT_USER;

@FeignClient(HT_USER)
public interface UserClient {
	/**
	 * Auth服务调用
	 * @param account
	 * @return
	 */
	@PostMapping("/user/feign/getUserPermissions")
	R<UserVo> getUserPermissions(@RequestParam("account") String account);

	@PostMapping("/user/feign/saveLoginLog")
	void saveLoginLog(LoginLog loginLog);


}
